package cn.wh.user.mapper;

import cn.wh.user.domain.Logininfo;
import cn.wh.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yaosang
 * @since 2022-06-16
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    //根据用户名和type查找
    Logininfo loadByUsernameAndtype(@Param("username")String username,@Param("type") Integer type);

    Logininfo loadByUserId(Long userId);
}
